<?php

namespace app\enterprise\model;

use app\model\TimeModel;

class Parameter extends TimeModel
{
    protected $table = 'sj_parameter';


    public static function list($where)
    {
        return self::where($where)->select()->toArray();
    }

    public static function listAll($field)
    {
        return self::where('status' , 1)->field($field)->select()->toArray() ;
    }

    public static function selectParameters($where)
    {
        return self::where($where)->select()->toArray() ;
    }


    public static function selectParameterMap($where)
    {
        $list = self::where($where)->select()->toArray() ;
        return array_column($list, 'para_name', 'id');
    }

}